#define _CRT_SECURE_NO_WARNINGS 1
#include "QuickSortNonR.h"


void printArray(int* array, int arraySize) {
	assert(array);
	int i = 0;
	printf("[ ");
	for (i = 0; i < arraySize; i++) {
		printf("%d", array[i]);
		if (i < arraySize - 1) {
			printf(", ");
		}
	}
	printf(" ]\n");
}
int main() {
	int nums[] = { 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, -1, -2 };
	int numsSize = sizeof(nums) / sizeof(nums[0]);

	QuickSortNonR(nums, numsSize);
	printArray(nums, numsSize);

	return 0;
}
